package com.jzo2o.customer.controller.operation;


import com.jzo2o.common.model.PageResult;
import com.jzo2o.customer.model.domain.AgencyCertificationAuditDTO;
import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditPageQueryReqDTO;
import com.jzo2o.customer.service.IAgencyCertificationAuditService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 机构认证审核记录表 前端控制器
 * </p>
 *
 * @author author
 * @since 2025-07-01
 */
@RestController
@Api(tags = "机构认证审核信息相关接口")
@RequestMapping("/operation")
public class AgencyCertificationAuditController {
    @Autowired
    private IAgencyCertificationAuditService iCertificationAuditService;


    @GetMapping("/agency-certification-audit/page")
    @ApiOperation("分页查询机构认证信息")
    public PageResult<AgencyCertificationAuditDTO> queryPage(AgencyCertificationAuditPageQueryReqDTO dto){
        return iCertificationAuditService.queryPage(dto);
    }


    @PutMapping("/agency-certification-audit/audit/{id}")
    @ApiOperation("审核机构认证信息")
    public void waarmerk(@PathVariable("id") Long id, Integer certificationStatus, String rejectReason){
        iCertificationAuditService.waarmerk(id, certificationStatus, rejectReason);
    }
}
